import request from '@/utils/request'

// 用户列表
export const getEnterpriseManagement = (data) => {
  return request({
    url: '/enterprise/list',
    method: 'post',
    data
  })
}

// 查询记录查询
export const getRecordList = (params) => {
  return request({
    url: '/system/record/list',
    method: 'get',
    params
  })
}

// 查询记录删除
export const deleteRecordList = (id) => {
  return request({
    url: '/system/record/' + id,
    method: 'delete',
  })
}

// 查询记录中的企业信息
export const checkRecordList = (params) => {
  return request({
    url: '/enterprise/' + params.id,
    method: 'get',
    params
  })
}

// 一键评估
export const oneKeyAssessment = (params) => {
  return request({
    url: '/system/record/oneKeyAssessment',
    method: 'get',
    params
  })
}

// 一键找回
export const oneKeyRetrieve = (params) => {
  return request({
    url: '/system/record/oneKeyRetrieve',
    method: 'get',
    params
  })
}
